﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RPGXEngine.IO;

namespace RPGXEngine.Factories
{
    public static class LoggerFactory
    {
        #region Static Properties

        public static ILogger Logger
        {
            get { return LoggerFactory._logger; }
            set { LoggerFactory._logger = value; }
        }
        private static ILogger _logger = null;

        #endregion

        #region Public Static Methods

        public static void Set(ILogger logger)
        {
            LoggerFactory.Logger = logger;
        }

        public static ILogger Get()
        {
            return LoggerFactory.Logger ?? new Logger();
        }

        #endregion
    }
}
